//
//  TopMenuViewController.h
//  SKStock
//
//  Created by thPark on 11. 1. 3..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
	TOP_LEFT_NONE = 0,
	TOP_LEFT_BACK,
	
	TOP_RIGHT_NONE = 0,
	TOP_RIGHT_MODIFY,
	TOP_RIGHT_ERASE,
    TOP_RIGHT_SETTING,
    TOP_RIGHT_CANCEL,
}TopMenuBtnType;

typedef enum {
	CHERRY_MENU_CARDDETAIL,                  // MainVC
    CHERRY_MENU_SETTING,
    
}CHERRYMenuState;

@protocol TopMenuVCDelegate <NSObject>

@optional
- (void)topMenuVCClickLeft; 
- (void)topMenuVCClickRight;

@end


@interface TopMenuViewController : UIViewController {
	IBOutlet UILabel* _labTitle;
	IBOutlet UIButton* _btnBack;
    IBOutlet UIButton* _btnModify;
    IBOutlet UIButton* _btnErase;
    IBOutlet UIButton* _btnSetting;
    IBOutlet UIButton* _btnCancel;

	int _viewIdx;
	int _leftBtnType;
	int _rightBtnType;
	id<TopMenuVCDelegate> _delegate;
    
    UIViewController* _VC;
}

@property (nonatomic, assign) id<TopMenuVCDelegate> _delegate;

- (void)setVController:(UIViewController *)vc;

/**
	상단 메뉴 State
	@param type Menu State
 */
- (void) initWithMenuType:(int)type;
/**
	드랍 뷰 기능에 필요한 이전화면 캡쳐를 위한 ViewController
	@param vc 해당 ViewController
 */
- (void)initTopMenuBtnType:(int)left right:(int)right;
- (void)chgTopMenuBtnType:(int)left right:(int)right;
- (void)changeTitleText:(NSString*)name;

- (IBAction) goErase;
- (IBAction) goModify;
- (IBAction) goBack;
- (IBAction) goSetting;
- (IBAction) goCancel;

@end